<!DOCTYPE HTML>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ include file="pages/taglib.jsp" %>
<html>
  <head>
    <base href="<%=basePath%>">
    <title>updateRequirement</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<%@ include file="pages/link-script.jsp" %>
  </head>
  <body>         
      <%@include file="pages/header.jsp" %>
		  	<h4 class="sub-header">更新需求信息</h4>
		  	<form role="form" action="updateRequirementById" method="post" >
		  		<div class="row">
		  		<s:iterator value="#session.reBean" status="status" >
				  <div class="form-group col-xs-7">
				    <label for="requirementId">需求编号</label>
				    <s:textfield  class="form-control" name="requirementId" placeholder="xq-yyyy-mm-dd" readonly="true"/>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="requirementType">需求类型</label>
					<s:textfield  class="form-control" name="requirementType" placeholder="requirement type"/>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="requirementKind">业务需求类别</label>
					<s:textfield  class="form-control" name="requirementKind" placeholder="requirement type"/>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="requirementName">需求名称</label>
				    <s:textfield  class="form-control" name="requirementName" placeholder="requirementName"/>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="requirementIntroduction">项目简介</label>
				    <s:textarea  class="form-control" row="3" name="requirementIntroduction" placeholder="to introduce the requirement..."/>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="applicationScope">应用范围</label>
				    <s:textfield  class="form-control" name="applicationScope" placeholder="this requirement will be used in ..."/>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="requirementUnit">需求单位</label>
				    <s:textfield  class="form-control" name="requirementUnit" placeholder="which unit propose the requirement?"/>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="sponsor">主办单位</label>
				    <s:textfield  class="form-control" name="sponsor" placeholder="which unit sponsor the requirement?"/>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="coSponsor">协办单位</label>
				    <s:textfield  class="form-control" name="coSponsor" placeholder="which unit co-sponsor the requirement?"/>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="requirementPerson">业务联系人</label>
				    <s:textfield  class="form-control" name="requirementPerson" placeholder="who propose the requirement?"/>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="dealType">处理类型</label>
					<s:textfield  class="form-control" name="dealType" placeholder="what's the  type of the requirement ?"/>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="dealTeam">受理团队</label>
					<s:textfield  class="form-control" name="dealTeam" placeholder="which development team will deal with the requirement ?"/>
				  </div>
				  <div class="form-group col-xs-7 input-append date" id="receiveDate">
				    <label for="receiveDate">需求接收日期</label>
				    <s:textfield type="date" id="receiveDate" class="form-control" name="receiveDate" placeholder="when do you receive the requirement?" readonly="true"/>
				    <span class="add-on"><i class="icon-calendar"></i></span>
				    <script>
				    	$('#receiveDate').datetimepicker({
					    	format: 'yyyy/mm/dd',
					    	startDate: '2016/01/01',
					    	autoclose: 'true',
					    	minView: 'month',
					    	todayBtn: 'linked',
					    	todayHighlight: 'ture',
					    	language: 'zh-CN'
					    });
				    </script>
				  </div>
				  <div class="form-group col-xs-7 input-append date" id="dealDate">
				    <label for="dealDate">需求受理日期</label>
				    <s:textfield  type="date" id="dealDate" class="form-control" name="dealDate" placeholder="when do you deal with the requirement?" readonly="true" />
				    <span class="add-on"><i class="icon-calendar"></i></span>
				    <script>
				    	$('#dealDate').datetimepicker({
					    	format: 'yyyy/mm/dd',
					    	startDate: '2016/01/01',
					    	autoclose: 'true',
					    	minView: 'month',
					    	todayBtn: 'linked',
					    	todayHighlight: 'ture',
					    	language: 'zh-CN'
					    });
				    </script>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="dealResult">审批结果</label>
				    <select name="dealResult" value="dealResult" class="form-control">
				    		<option value="">请选择</option>
				    		<option value="通过">通过</option>
				     		<option value="审批中">审批中</option>
				     		<option value="暂缓">暂缓</option>
				     		<option value="回绝">回绝</option>
				     		<option value="回退">回退</option>
				    </select>
				  </div>
				  <div class="form-group col-xs-7">
				    <label for="dealdetails">备注</label>
				    <s:textfield  class="form-control" name="dealdetails" placeholder="anything else..."/>
				  </div>
				 </s:iterator>
			  </div>
			  <button type="submit" class="btn btn-primary">提交更新</button>
			</form>
		<%@include file="pages/footer.jsp" %>
  </body>
</html>
